package com.more.spring.boot.springbootdemo1.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/*
@RestController 有@Controller和@ResponseBody组成
@ResponseBody将返回值转化成json字符串返回
 */
@RestController
public class HelloController {


    @RequestMapping("/hello")
    public String hell(){
        String msg = "Hello World";
        return msg;
    }
}
